package controller;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import service.JedisClient;


/**
 * Created by yyl on 2017/5/23 0023.
 */
public class DemoTest{

//        @Test
//        public void testJedisClient()throws Exception{
//        //初始化Spring容器
//        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
//        //从容器中获得JedisClient对象
//        JedisClient jedisClient = applicationContext.getBean(JedisClient.class);
//
//        jedisClient.set("first","100");
//
//        String result=jedisClient.get("first");
//
//        System.out.println(result);
//
//        }
}
